﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Question.aspx.cs" Inherits="EXAM.Admin.Page_Admin.Question" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                <table cellpadding="0" cellspacing="6" border="0" class="tableForm" id="tblManagePartner">
                    <tr>
                        <td colspan="2" align="center" class="formTitle">
                            Question Management
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div id="divError">
                                <asp:Label ID="lbErr" runat="server"></asp:Label>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="float: left">
                                <table>
                                    <tr>
                                        <td>
                                            Type
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadComboBox ID="cbbType" runat="server">
                                                <Items>
                                                    <telerik:RadComboBoxItem runat="server" Text="Single answers" Value="Single answers" />
                                                    <telerik:RadComboBoxItem runat="server" Text="Multiple answers" Value="Multiple answers" />
                                                    <telerik:RadComboBoxItem runat="server" Text="Free answer" Value="Free answer" />
                                                    <telerik:RadComboBoxItem runat="server" Text="Ordering answers" Value="Ordering answers" />
                                                </Items>
                                            </telerik:RadComboBox>
                                            <telerik:RadTextBox ID="txtID" runat="server" Visible="False" Width="50px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Description
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadTextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="300px"
                                                Height="100px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Explanation
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadTextBox ID="txtExplanation" runat="server" TextMode="MultiLine" Width="300px"
                                                Height="100px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Group Access</td>
                                        <td colspan="2">
                            <telerik:RadComboBox ID="cboANAL_Q9" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" AutoPostBack="True"
                                Width="300px" onitemsrequested="cboANAL_Q9_ItemsRequested">
                            </telerik:RadComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Difficulty
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadNumericTextBox ID="txtDifficulty" runat="server" Culture="English (United States)"
                                                DataType="System.Int32" MinValue="0" Value="0" Width="300px">
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Timer
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadNumericTextBox ID="txtTimer" runat="server" Culture="English (United States)"
                                                DataType="System.Int32" Value="0" Width="300px">
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Rate
                                        </td>
                                        <td colspan="2">
                                            <telerik:RadNumericTextBox ID="txtRate" runat="server" Culture="English (United States)"
                                                DataType="System.Int32" Value="0" Width="300px" ReadOnly="True">
                                            </telerik:RadNumericTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Picture
                                        </td>
                                        <td colspan="2">
                                            <div style="width: 220px; float: left">
                                                <telerik:RadUpload ID="upPicture" runat="server" ControlObjectsVisibility="None"
                                                    Width="220px">
                                                </telerik:RadUpload>
                                            </div>
                                            <asp:Image ID="imgPic" runat="server" Height="80px" Width="80px" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Sound
                                        </td>
                                        <td>
                                            <telerik:RadUpload ID="upSound" runat="server" ControlObjectsVisibility="None" Width="220px">
                                            </telerik:RadUpload>
                                        </td>
                                        <td>
                                            &nbsp;
                                            <telerik:RadTextBox ID="txtPicture" runat="server" Visible="False" Width="50px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Enabled
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="rdlEnabled" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Selected="True" Value="1">Enabled</asp:ListItem>
                                                <asp:ListItem Value="0">Disabled</asp:ListItem>
                                            </asp:RadioButtonList>
                                        </td>
                                        <td>
                                            &nbsp;
                                            <telerik:RadTextBox ID="txtSound" runat="server" Visible="False" Width="50px">
                                            </telerik:RadTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Product</td>
                                        <td>
                            <telerik:RadComboBox ID="cboANAL_Q0" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" AutoPostBack="True" OnSelectedIndexChanged="cboANAL_Q_SelectedIndexChanged"
                                Width="300px">
                            </telerik:RadComboBox>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Feature</td>
                                        <td>
                            <telerik:RadComboBox ID="cboANAL_Q1" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" AutoPostBack="True" OnSelectedIndexChanged="cboANAL_Q_SelectedIndexChanged"
                                Width="300px">
                            </telerik:RadComboBox>
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                            </div>
                            <div style="float: left">
                                <table>
                                    <tr>
                                        <td style="color: Blue">
                                            <b>Transfer In</b>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadUpload ID="upFile" runat="server" ControlObjectsVisibility="None" Width="220px"
                                                TargetFolder="~/Tmp" OverwriteExistingFiles="True">
                                            </telerik:RadUpload>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;<telerik:RadButton ID="btnTransferIn" runat="server" Text="Transfer In" Width="100px"
                                                OnClick="btnTransferIn_Click">
                                            </telerik:RadButton>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div style="margin: auto; width: 450px">
        <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
            SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
            Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
            Width="100px">
        </telerik:RadButton>
        <telerik:RadButton ID="btnAnswer" runat="server" Text="To Answer &gt;&gt;" OnClick="btnAnswer_Click"
            Width="100px">
        </telerik:RadButton>
    </div>
    <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
        Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
        AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
        OnNeedDataSource="dgvList_NeedDataSource">
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
        </HeaderContextMenu>
        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"
                            FileName="Question">
                            <Excel Format="ExcelML" />
                        </ExportSettings>
        <MasterTableView PageSize="20" DataKeyNames="ID" CommandItemDisplay="Top">
            <CommandItemSettings ShowRefreshButton="false" ShowExportToExcelButton="true" ShowAddNewRecordButton="false"
                                ExportToExcelText="Export to Excel" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridButtonColumn CommandName="Selected" FilterControlAltText="Filter column column"
                    Text="Edit" UniqueName="column3">
                </telerik:GridButtonColumn>
                <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                </telerik:GridClientSelectColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column1 column" HeaderText="Description"
                    UniqueName="column1" DataField="Description">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="Explanation"
                    UniqueName="column2" DataField="Explanation">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column4 column" HeaderText="Type"
                    UniqueName="column4" DataField="Type">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn FilterControlAltText="Filter column5 column" HeaderText="Difficulty"
                    UniqueName="column5" DataField="Difficulty">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ANAL_Q0" FilterControlAltText="Filter column9 column"
                    HeaderText="Product" UniqueName="column9">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ANAL_Q1" FilterControlAltText="Filter column column"
                    HeaderText="Feature" UniqueName="column10">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Enabled" FilterControlAltText="Filter column column"
                    HeaderText="Enabled" UniqueName="column7">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Rate" DataFormatString="{0:N2}%" FilterControlAltText="Filter column11 column"
                    HeaderText="Rate" UniqueName="column11">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ANAL_Q9" 
                    FilterControlAltText="Filter column column" HeaderText="DA Group" 
                    UniqueName="column">
                </telerik:GridBoundColumn>
                <telerik:GridButtonColumn CommandName="Detail" FilterControlAltText="Filter column column"
                    Text="Answer&gt;&gt;" UniqueName="column6" ButtonType="PushButton">
                </telerik:GridButtonColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
        </ClientSettings>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
